package com.ykq.service.impl;

import com.ykq.entity.Department;
import com.ykq.mapper.DepartmentMapper;
import com.ykq.service.DeptService;
import com.ykq.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 闫克起
 * @Description:
 * @Date: Create in 9:18 2024/10/23
 */
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DepartmentMapper deptMapper;
    @Override
    public R selectAll() {
        List<Department> depts= deptMapper.selectAll();
        return R.ok(depts);
    }
}
